This key defines the path to a file containing your commit template.
The value is a string that specifies a file path relative to the root directory. CloudCannon will use the contents of this file as the commit template.
CloudCannon will not use this file if template_string is also defined for the commit template.
Appears in
└── commit_templates
└── [*]
└── template_pathType
string
Examples
In this example, we have configured a commit template to use a file at /.git/commit-message.txt.
Copied to clipboard
commit_templates:
- label: Commit message from file
template_path: /.git/commit-message.txt{
"commit_templates": [
{
"label": "Commit message from file",
"template_path": "/.git/commit-message.txt"
}
]
}